using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Security.Entity
{
    [AttributeUsage(AttributeTargets.All, AllowMultiple = true, Inherited = true)]
    public class SecurityMarkAttribute : Attribute
    {
        private string resname = null;

        public SecurityMarkAttribute(string resName)
        {
            if (resName == null || resName.Trim() == "")
                throw new Exception("invalid permission name");

            this.resname = resName;
        }

        public string ResourceName
        {
            get { return resname; }
            set { resname = value; }
        }
    }
}
